package com.zongzi.stock.utils;

/**
 * Created by Dell on 2017/5/15.
 */

public class MathUtils {
    //保留两位小数
    public static double nRound(double x, int num){
        return Math.round(x * Math.pow(10, num)) / Math.pow(10, num) ;
    }
}
